package com.class5.springboot.frame.repo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Repository;

@ConfigurationProperties(prefix = "myconfig.dbconfig")
@Repository
public class RepositoryProperties {
    //是否需要更新数据库结构
    private String needUpdateScheme = "false";
    //主数据源
    private DatabaseProperty dbmaster;
    //只读数据源
    private DatabaseProperty dbreadonly;
    //数据初始化类型 prod:只更新prod类型的init数据，test:更新所有类型的数据
    private String dataUpdateType = "prod";


    public String getDataUpdateType() {
        return dataUpdateType;
    }


    public String getNeedUpdateScheme() {
        return needUpdateScheme;
    }

    public void setNeedUpdateScheme(String needUpdateScheme) {
        this.needUpdateScheme = needUpdateScheme;
    }

    public void setDataUpdateType(String dataUpdateType) {
        this.dataUpdateType = dataUpdateType;
    }


    public DatabaseProperty getDbmaster() {
        return dbmaster;
    }


    public void setDbmaster(DatabaseProperty dbmaster) {
        this.dbmaster = dbmaster;
    }


    public DatabaseProperty getDbreadonly() {
        return dbreadonly;
    }


    public void setDbreadonly(DatabaseProperty dbreadonly) {
        this.dbreadonly = dbreadonly;
    }

}